home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3c / sgi_getcapabilitybyname.z / sgi_getcapabilitybyname
Encoding:
Text File  |  2001-04-17  |  2.5 KB  |  67 lines

  1.  
  2.  
  3.  
  4. SSSSGGGGIIII____GGGGEEEETTTTCCCCAAAAPPPPAAAABBBBIIIILLLLIIIITTTTYYYYBBBBYYYYNNNNAAAAMMMMEEEE((((3333CCCC))))                        SSSSGGGGIIII____GGGGEEEETTTTCCCCAAAAPPPPAAAABBBBIIIILLLLIIIITTTTYYYYBBBBYYYYNNNNAAAAMMMMEEEE((((3333CCCC))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      sgi_getcapabilitybyname - get the default and allowed capability sets for
  10.      a named user
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      ####iiiinnnncccclllluuuuddddeeee <<<<ccccaaaappppaaaabbbbiiiilllliiiittttyyyy....hhhh>>>>
  14.  
  15.      ssssttttrrrruuuucccctttt uuuusssseeeerrrr____ccccaaaapppp ****ssssggggiiii____ggggeeeettttccccaaaappppaaaabbbbiiiilllliiiittttyyyybbbbyyyynnnnaaaammmmeeee((((ccccoooonnnnsssstttt cccchhhhaaaarrrr ****nnnnaaaammmmeeee))));;;;
  16.  
  17. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  18.      Return the default and allowed capability sets for the user _n_a_m_e.  The
  19.      routine uses the NIS map ccccaaaappppaaaabbbbiiiilllliiiittttyyyy....bbbbyyyynnnnaaaammmmeeee if NIS is active, otherwise it
  20.      uses the local capabilities file, ////eeeettttcccc////ccccaaaappppaaaabbbbiiiilllliiiittttyyyy.
  21.  
  22. RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEESSSS
  23.      The routine returns a pointer to an allocated _s_t_r_u_c_t _u_s_e_r__c_a_p. This
  24.      structure and its components (_c_a_p->_c_a__n_a_m_e, _c_a_p->_c_a__d_e_f_a_u_l_t and _c_a_p-
  25.      >_c_a__a_l_l_o_w_e_d) have been allocated by the routine with _m_a_l_l_o_c(3c) and
  26.      should be released with _f_r_e_e(3c) when no longer needed.
  27.  
  28.      If errors are encountered, or the specified user name could not be found,
  29.      NULL is returned.
  30.  
  31. EEEERRRRRRRROOOORRRRSSSS
  32.      ENOSYS          capabilities are not enabled.
  33.  
  34. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  35.      capabilities(4)
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.